﻿<phone:PhoneApplicationPage 
    x:Class="demobackground.secondpage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    Background="{StaticResource bg}"
    
    SupportedOrientations="Landscape" Orientation="Landscape"
    mc:Ignorable="d" d:DesignHeight="480" d:DesignWidth="800"
    Loaded="PhoneApplicationPage_Loaded"
    shell:SystemTray.IsVisible="False">
    
    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot">
        
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <MediaElement x:Name="demoSound" Volume="1" Source="Cho.wav" AutoPlay="False" MediaOpened="demoSound_MediaOpened" MediaEnded="demoSound_MediaEnded"  ></MediaElement>
            <!--<Button x:Name="btnA" Content="A. Tây Ban Nha" HorizontalAlignment="Left" Width="212" Height="68" Margin="32,0,0,72" VerticalAlignment="Bottom"  BorderThickness="0" FontSize="16" Click="btnA_Click" />
            <Button x:Name="btnB" Content="B. Đức" Width="212" Height="68" Margin="317,0,247,72" VerticalAlignment="Bottom" BorderThickness="0" FontSize="16" Click="btnB_Click" />
            <Button x:Name="btnC" Content="C. Anh" Width="212" Height="68" Margin="32,0,0,8" VerticalAlignment="Bottom" BorderThickness="0" FontSize="16" HorizontalAlignment="Left" Click="btnC_Click" />
            <Button x:Name="btnD" Content="D. Bồ Đào Nha" Width="212" Height="68" Margin="317,0,247,8" VerticalAlignment="Bottom" BorderThickness="0" FontSize="16" Click="btnD_Click" />-->
            <!--<StackPanel HorizontalAlignment="Right" Margin="0,98,134,72" Height="310" Width="50" d:LayoutOverrides="GridBox">
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="15" Width="30" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="14" Width="30" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="13" Width="30" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="12" Width="30" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="11" Width="30" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="10" Width="30" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="9" Width="30" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="8" Width="30" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="7" Width="30" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="6" Width="30" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="5" Width="30" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="4" Width="30" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="3" Width="30" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="2" Width="30" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="1" Width="30" FontSize="17.333" HorizontalAlignment="Left"/>
        	</StackPanel>
        	<StackPanel HorizontalAlignment="Right" Margin="0,98,0,72" Height="310" Width="150" d:LayoutOverrides="GridBox">
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="120000" Width="120" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="80000" Width="120" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="50000" Width="120" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="35000" Width="120" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="25000" Width="120" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="15000" Width="120" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="9000" Width="120" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="6000" Width="120" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="3600" Width="120" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="2000" Width="120" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="1000" Width="120" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="400" Width="120" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="300" Width="120" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="200" Width="120" FontSize="17.333" HorizontalAlignment="Left"/>
        		<TextBlock Height="20" Margin="0" TextWrapping="Wrap" Text="100" Width="120" FontSize="17.333" HorizontalAlignment="Left"/>
        	</StackPanel>-->
        	<TextBlock x:Name="txtSTT" HorizontalAlignment="Right" Height="28" Margin="0,0,33,15" TextWrapping="Wrap" Text="0" VerticalAlignment="Bottom" Width="149" TextAlignment="Center" FontFamily="Times New Roman" FontSize="24" FontWeight="Bold" />
        	<Image x:Name="imageCauHoi" Margin="109,8,311,254" Source="image/wwtbam_logo1.png" Stretch="Fill"/>
            <Button x:Name="btnDoiCauHoi"  Height="70" HorizontalAlignment="Left" Margin="0,6,0,0" BorderThickness="0" VerticalAlignment="Top" Width="70"  Click="btnDoiCauHoi_Click" >
                <Button.Background>
                    <ImageBrush ImageSource="refresh.png"/>
                </Button.Background>
            </Button>
            <Button x:Name="btn50"  Height="70" HorizontalAlignment="Left" Margin="0,71,0,0" BorderThickness="0" VerticalAlignment="Top" Width="70" Click="btn50_Click">
                <Button.Background>
                    <ImageBrush ImageSource="50.png"/>
                </Button.Background>
            </Button>
            <Button x:Name="btnDungChoi" BorderThickness="0" Height="70" HorizontalAlignment="Left" Margin="0,141,0,0" VerticalAlignment="Top" Width="70" Click="btnDungChoi_Click">
                <Button.Background>
                    <ImageBrush ImageSource="stop_icon.png" />
                </Button.Background>
            </Button>
            <Grid Height="33" HorizontalAlignment="Left" Margin="52,356,0,0" Name="gridA" VerticalAlignment="Top" Width="188">
                <TextBlock FontFamily="Segoe WP Semibold" FontSize="16" VerticalAlignment="Center"  HorizontalAlignment="Left" Name="txtA" Text="" Width="219" Tap="txtA_Tap" />
            </Grid>
            <Grid Height="33" HorizontalAlignment="Left" Margin="338,356,0,0" Name="gridB" VerticalAlignment="Top" Width="177">
                <TextBlock FontFamily="Segoe WP Semibold" FontSize="16" VerticalAlignment="Center"  HorizontalAlignment="Left" Name="txtB" Text=""  Width="219" Tap="txtB_Tap" />
            </Grid>
            <Grid Height="33" HorizontalAlignment="Left" Margin="52,416,0,0" Name="gridC" VerticalAlignment="Top" Width="188">
                <TextBlock FontFamily="Segoe WP Semibold" FontSize="16" VerticalAlignment="Center"  HorizontalAlignment="Left" Name="txtC" Text=""  Width="219" Tap="txtC_Tap" />
            </Grid>
            <Grid Height="33"  HorizontalAlignment="Left" Margin="338,416,0,0" Name="gridD" VerticalAlignment="Top" Width="177">
                <TextBlock FontFamily="Segoe WP Semibold" FontSize="16" VerticalAlignment="Center"  HorizontalAlignment="Left" Name="txtD" Text=""  Width="219" Tap="txtD_Tap" Grid.RowSpan="2" />
            </Grid>
            <Grid Height="73" HorizontalAlignment="Left" Margin="93,242,0,0" Name="grid1" VerticalAlignment="Top" Width="387">
                <TextBlock  TextAlignment="Left" x:Name="txtCauHoi" TextWrapping="Wrap"  VerticalAlignment="Center" FontSize="16" FontFamily="Segoe WP Semibold" Text="Đội tuyển nào vô địch world cup 2010?" Width="387" HorizontalAlignment="Left" FontWeight="Bold" Margin="0,0,0,6" />
            </Grid>
        </Grid>
        <Grid x:Name="gridDiem" Height="402" HorizontalAlignment="Left" Margin="606,11,0,0" VerticalAlignment="Top" Width="160" Grid.RowSpan="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="53*" />
                <ColumnDefinition Width="121*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <TextBlock Canvas.ZIndex="91" Foreground="Red" Grid.Column="0" Grid.Row="0">15</TextBlock>
            <TextBlock Canvas.ZIndex="91" Foreground="Red" Grid.Column="1" Grid.Row="0">120.000</TextBlock>
            <TextBlock Canvas.ZIndex="91" Grid.Column="0" Grid.Row="1">14</TextBlock>
            <TextBlock Canvas.ZIndex="91" Grid.Column="1" Grid.Row="1">80.000</TextBlock>
            <TextBlock Canvas.ZIndex="91" Grid.Column="0" Grid.Row="2">13</TextBlock>
            <TextBlock Canvas.ZIndex="91" Grid.Column="1" Grid.Row="2">50.000</TextBlock>
            <TextBlock Canvas.ZIndex="91" Grid.Column="0" Grid.Row="3">12</TextBlock>
            <TextBlock Canvas.ZIndex="91" Grid.Column="1" Grid.Row="3">35.000</TextBlock>
            <TextBlock Canvas.ZIndex="91" Grid.Column="0" Grid.Row="4">11</TextBlock>
            <TextBlock Canvas.ZIndex="91" Grid.Column="1" Grid.Row="4">25.000</TextBlock>
            <TextBlock Canvas.ZIndex="91" Foreground="Red" Grid.Column="0" Grid.Row="5">10</TextBlock>
            <TextBlock Canvas.ZIndex="91" Foreground="Red" Grid.Column="1" Grid.Row="5">15.000</TextBlock>
            <TextBlock Canvas.ZIndex="91" Grid.Column="0" Grid.Row="6">9</TextBlock>
            <TextBlock Canvas.ZIndex="91" Grid.Column="1" Grid.Row="6">9.000</TextBlock>
            <TextBlock Canvas.ZIndex="91" Grid.Column="0" Grid.Row="7">8</TextBlock>
            <TextBlock Canvas.ZIndex="91" Grid.Column="1" Grid.Row="7">6.000</TextBlock>
            <TextBlock Canvas.ZIndex="91" Grid.Column="0" Grid.Row="8">7</TextBlock>
            <TextBlock Canvas.ZIndex="91" Grid.Column="1" Grid.Row="8">3.600</TextBlock>
            <TextBlock Canvas.ZIndex="91" Grid.Column="0" Grid.Row="9">6</TextBlock>
            <TextBlock Canvas.ZIndex="91" Grid.Column="1" Grid.Row="9">2.000</TextBlock>
            <TextBlock Canvas.ZIndex="91" Foreground="Red" Grid.Column="0" Grid.Row="10">5</TextBlock>
            <TextBlock Canvas.ZIndex="91" Foreground="Red" Grid.Column="1" Grid.Row="10">1.000</TextBlock>
            <TextBlock Canvas.ZIndex="91" Grid.Column="0" Grid.Row="11">4</TextBlock>
            <TextBlock Canvas.ZIndex="91" Grid.Column="1" Grid.Row="11">500</TextBlock>
            <TextBlock Canvas.ZIndex="91" Grid.Column="0" Grid.Row="12">3</TextBlock>
            <TextBlock Canvas.ZIndex="91" Grid.Column="1" Grid.Row="12">300</TextBlock>
            <TextBlock Canvas.ZIndex="91" Grid.Column="0" Grid.Row="13">2</TextBlock>
            <TextBlock Canvas.ZIndex="91" Grid.Column="1" Grid.Row="13">200</TextBlock>
            <TextBlock Canvas.ZIndex="91" Grid.Column="0" Grid.Row="14">1</TextBlock>
            <TextBlock Canvas.ZIndex="91" Grid.Column="1" Grid.Row="14">100</TextBlock>
            <Border x:Name="borderDiem" Canvas.ZIndex="50" Margin="0,0,0,3" Grid.ColumnSpan="2" Grid.Row="14" Height="28">
                <Border.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="Black" Offset="0" />
                        <GradientStop Color="White" Offset="1" />
                    </LinearGradientBrush>
                </Border.Background>
            </Border>
        </Grid>
        <Grid.Background>
            <ImageBrush ImageSource="/demobackground;component/background.jpg" />
        </Grid.Background>
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
